package com.hh.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("book")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String bookNo;
    private String bookName;
    private String author;
    private String borrower;
    private String borrowDate;
    private String returnDate;
    private String borrowStatus;
    private Integer bookNum;

    public Book(String bookNo, String bookName, String author, String borrower, String borrowDate, String returnDate, String borrowStatus, Integer bookNum) {
        this.bookNo = bookNo;
        this.bookName = bookName;
        this.author = author;
        this.borrower = borrower;
        this.borrowDate = borrowDate;
        this.returnDate = returnDate;
        this.borrowStatus = borrowStatus;
        this.bookNum = bookNum;
    }
}

